Threshold alerts

Threshold alerts can be set. If a threshold is reached, an alert is generated.